package com.allwees.bs.core.model.user.entity;

import com.allwees.bs.core.model.coupon.constant.PointChangeTypeEnum;
import com.allwees.bs.core.modelbase.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.MappedSuperclass;
import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@MappedSuperclass
public abstract class UserPointLogModel extends BaseEntity {

    private static final long serialVersionUID = -2278222128442043720L;

    /** 积分uuid **/
    @Column(length = 64)
    protected String pointUuid;

    /** 用户uuid **/
    @Column(length = 64)
    protected String userUuid;

    protected String logKey;

    /** 积分变动类型 **/
    @Column(length = 48)
    @Enumerated(EnumType.STRING)
    protected PointChangeTypeEnum useType;
//
//    /** 日志类型 **/
//    @Column(length = 48)
//    @Enumerated(EnumType.STRING)
//    protected EUserCouponLogType logType;

    /** 积分 **/
    protected BigDecimal value;
}

